<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Lekarz</title>
</h:head>
<body>
	<ui:composition template="/pages/common/commonLayout.xhtml">
		<ui:define name="content">
			<p:panel>
				<h:form>
					<table>
						<tr>
							<td colspan="5"><b><h:outputText value="Dane lekarza:" /></b>
							</td>
						</tr>
						<tr>
							<td><h:outputLabel for="firstName" value="Imie:" /></td>
							<td><h:outputText id="firstName"
									value="#{doctorMB.doctor.firstName}" /></td>
							<td width="50px" />
							<td><h:outputLabel for="middleName" value="Drugie imie:" /></td>
							<td><h:outputText id="middleName"
									value="#{doctorMB.doctor.middleName}" /></td>
						</tr>
						<tr>
							<td><h:outputLabel for="secondName" value="Nazwisko:" /></td>
							<td><h:outputText id="secondName"
									value="#{doctorMB.doctor.lastName}" /></td>
							<td width="50px" />
							<td><h:outputLabel for="pesel" value="Pesel:" /></td>
							<td><h:outputText id="pesel"
									value="#{doctorMB.doctor.pesel}" /></td>
						</tr>
						<tr>
							<td><h:outputLabel for="nip" value="Nip:" /></td>
							<td><h:outputText id="nip" value="#{doctorMB.doctor.nip}" /></td>
							<td width="50px" />
							<td><h:outputLabel for="phone" value="Telefon:" /></td>
							<td><h:outputText id="phone"
									value="#{doctorMB.doctor.mobilePhone}" /></td>
						</tr>
						<tr>
							<td><h:outputLabel for="email" value="Email:" /></td>
							<td><h:outputText id="email"
									value="#{doctorMB.doctor.email}" /></td>
							<td width="50px" />
							<td><h:outputLabel for="gender" value="Plec:" /></td>
							<td><h:outputText id="gender"
									value="#{doctorMB.doctor.gender.label}">
								</h:outputText></td>
						</tr>
						<tr>
							<td><h:outputLabel for="birthDate" value="Data urodzenia:" /></td>
							<td><h:outputText id="birthDate"
									value="#{doctorMB.doctor.birthDate}" /></td>
							<td width="50px" />
							<td><h:outputLabel for="spec" value="Specjalizacja:" /></td>
							<td><h:outputText id="spec"
									value="#{doctorMB.doctor.spec.label}">
								</h:outputText></td>
						</tr>
						<tr>
							<td><h:outputLabel for="age" value="Wiek:" /></td>
							<td><h:outputText id="age" value="#{doctorMB.doctor.age}" /></td>
						</tr>
						<tr height="20px" />
						<tr>
							<td colspan="5"><b><h:outputText value="Adres:" /></b></td>
						</tr>
						<tr>
							<td><h:outputLabel for="street" value="Ulica:" /></td>
							<td><h:outputText id="street"
									value="#{doctorMB.doctor.address.street}" /></td>
							<td width="50px" />
							<td><h:outputLabel for="streetNumber" value="Numer:" /></td>
							<td><h:outputText id="streetNumber"
									value="#{doctorMB.doctor.address.streetNumber}" /></td>
						</tr>
						<tr>
							<td><h:outputLabel for="flatNo" value="Mieszkanie:" /></td>
							<td><h:outputText id="flatNo"
									value="#{doctorMB.doctor.address.flatNumber}" /></td>
							<td width="50px" />
							<td><h:outputLabel for="postal" value="Kod pocztowy:" /></td>
							<td><h:outputText id="postal"
									value="#{doctorMB.doctor.address.postalCode}" /></td>
						</tr>
						<tr>
							<td><h:outputLabel for="postalTown" value="Poczta:" /></td>
							<td><h:outputText id="postalTown"
									value="#{doctorMB.doctor.address.postalTown}" /></td>
						</tr>
					</table>
				</h:form>
			</p:panel>
		</ui:define>
	</ui:composition>
</body>
</html>
